From: Michael Albinus Date: Thu, 19 Nov 2009 09:25:19 +0000 (+0000) Subject: * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~9386 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b0209cf823c768bb10ca355b0c05b6ca621bd7d8;p=emacs.git * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set variables for computing the prompt for reading password. --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index dc755d04a4a..89dca1eed28 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3804,6 +3804,12 @@ The method used must be an out-of-band method." (tramp-error v 'file-error "Cannot find copy program: %s" copy-program)) + ;; Set variables for computing the prompt for reading + ;; password. + (setq tramp-current-method (tramp-file-name-method v) + tramp-current-user (tramp-file-name-user v) + tramp-current-host (tramp-file-name-host v)) + (unwind-protect (with-temp-buffer ;; The default directory must be remote.